Reproducible builds requires that the build time stamp is not
authorPaul Gevers <elbrus@debian.org>
Sat, 22 Jan 2022 15:32:26 +0000 (15:32 +0000)
committerAbou Al Montacir <abou.almontacir@sfr.fr>
Sat, 22 Jan 2022 15:32:26 +0000 (15:32 +0000)
commitfff36eba3c0fa23f6f534c218d41cad2da1d1eaf
treeb9c6289b96528fa413b0b7bac3503034c64defb2
parent1e23451d9a7f17f987758ce231a6b86dbc13a1d6
Reproducible builds requires that the build time stamp is not

recorded in binaries. In FPC they are fuild in via the $INCLUDE %DATE%
directive which calls getdatestr in globals.pas. To allow reproducible builds
we should honor the SOURCE_DATE_EPOCH environment variable. To not depend on
the dateutil unit, we include the required code from that package here.

Gbp-Pq: Name honor_SOURCE_DATE_EPOCH_in_date.patch
fpcsrc/compiler/globals.pas